import useAuthButtons from "@/hooks/useAuthButtons"
import { Button, Space } from "antd"

const hookButton = () => {
    const { BUTTONS } = useAuthButtons()
    console.log(BUTTONS)

    return (
        <>
            <Space>
                {BUTTONS.add && <Button>我是Admin && User 能看到的按钮</Button>}
                {BUTTONS.delete && <Button>我是Admin能看到的按钮</Button>}
                {BUTTONS.edit && <Button>我是User能看到的按钮</Button>}
            </Space>
        </>
    )
}

export default hookButton